package APE.Swing_Awt;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import javax.swing.*;


public class MonAppli2 extends JFrame {

	/**
	 * @param args
	 */
	
	//MonEcouteur2 me2=new MonEcouteur2();
	
	public MonAppli2(){
		super("Humm Mon tralala");
		MonPanel mp= new MonPanel();
		setContentPane(mp);
		setSize(300, 400);
		setVisible(true);
		//addWindowListener(me2);	OU
		addWindowListener (new WindowAdapter(){public void windowClosing(WindowEvent e){System.exit(0);}});
		
		
	}
public void paint(Graphics g){
		/*
		Color c1 = new Color(255,255,0,127);	//jaune 
		Color c2 = new Color(50,255,50,127); 	//rouge
		Color c3 = new Color(255,50,50,127);	//vert
		Color c4 = new Color(50,50,255,127);	//bleu
		g.setColor(c1);
		g.fillOval(50, 50, 100, 75);
		g.drawString("Vas te faire JB", 50,150);
		g.setColor(c2);
		g.fillOval(100, 50, 100, 75);
		g.drawString("Vas te faire JB", 50,200);
		g.setColor(c3);
		g.fillOval(50, 100, 100, 75);
		g.drawString("Vas te faire JB", 50,250);
		g.setColor(c4);
		g.fillOval(100, 100, 100, 75);
		g.drawString("Vas te faire JB", 50,300);
		*/
		
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		MonAppli2 map2= new MonAppli2();

	}

}
